home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Libris Britannia 4
/
science library(b).zip
/
science library(b)
/
PROGRAMM
/
BASIC
/
3940.ZIP
/
PWEZ.ZIP
/
MAKEISAM.BAS
< prev
next >
Wrap
BASIC Source File
|
1993-06-01
|
2KB
|
48 lines
'!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
'!!! ** [ READ THIS ] ** !!!!!!!! ** [ READ THIS ] ** !!!
'!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
'
' INSTRUCTIONS
'
' 1. TSR, PROISAMD, MUST BE LOADED BEFORE ATTEMPTING TO RUN THIS PROGRAM.
' WITH PROISAMD.EXE AVAILABLE, TYPE: PROISAMD -- AT THE DOS PROMPT.
' 2. IF THE FILE, ISAMDATA.DAT, ALREADY EXISTS DO NOT RUN THIS PROGRAM.
' 3. LOAD AND RUN MAKEISAM.BAS ( THIS FILE ) TO MAKE THE ISAM DATA FILE,
' ISAMDATA.DAT.
'
'***************************************************************************
TYPE REC
MARK AS STRING * 1
NAM AS STRING * 25
ADD1 AS STRING * 30
CITY AS STRING * 25
STATE AS STRING * 10
ZIP AS STRING * 9
END TYPE
DIM RECORD AS REC
OPEN "ISAMDATA.DAT" FOR ISAM REC "ALLDATA" AS 1 ' NUMBER OF RECORDS IN FILE
CREATEINDEX 1, "NAME", 0, "NAM"
CTR% = 1
MOVEFIRST 1
CLS
LOCATE 1, 1: PRINT "Making ISAM data file.";
FOR Y% = 65 TO 90
PRINT ".";
FOR X% = 0 TO 9
RECORD.MARK = " "
RECORD.NAM = CHR$(Y%) + LTRIM$(STR$(X%)) + " THIS IS NAME # -" + STR$(CTR%)
RECORD.ADD1 = "THIS IS ADDRESS # ------" + STR$(CTR%)
RECORD.CITY = "THIS IS CITY # ----" + STR$(CTR%)
RECORD.STATE = "ST #" + STR$(CTR%)
RECORD.ZIP = "ZIP #" + STR$(CTR%)
INSERT 1, RECORD
CTR% = CTR% + 1
NEXT
NEXT
LOCATE 1, 1: PRINT "ISAM DATA FILE HAS BEEN MADE. "
CLOSE